package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.entity.Classes;
import org.example.entity.User;

import java.util.List;

public interface ClassesMapper extends BaseMapper<Classes> {
    @Select("SELECT * FROM classes WHERE classname=#{parentId}")
    List<Classes> selectbyid(String parentId);
    @Select("SELECT studentname FROM classes WHERE id=#{parentId}")
    String selectbyid2(Integer parentId);
}
